package com.cheng.commonutlis.avtivity;

import androidx.appcompat.app.AppCompatActivity;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

import com.cheng.commonlibrary.activity.utlis.ActivityUtils;
import com.cheng.commonutlis.R;

import java.util.List;

public class Main4Activity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main4);
    }

    public void onClick(View view) {
        List<Activity> stackActivitys = ActivityUtils.getInstance().getStackActivitys();
        Log.d(TAG, "onClick: " + stackActivitys.size());
        ActivityUtils.getInstance().finishToActivity(Main2Activity.class);
    }

    private static final String TAG = "Main4Activity";
}
